<?php

namespace app\common\model;

/**=========================================
 * Copyright © 2023-2024, WICMS.CN. All Rights Reserved
 * Project Name: WiCMS
 * Description: 部门模型
 * Author: jason
 * Email: 52527998@QQ.COM
 * Date: 2024/12/15
 * Time: 00:29
 * File: app\common\Model\Department.php
 * =========================================
 */

use think\Model;

class DepartmentModel extends Model
{

    protected $pk                 = 'id';
    protected $name               = 'Department';
    protected $autoWriteTimestamp = false;



    /**
     * @param array $condition
     * @param array $field
     *
     * @return array
     */
    public static function getList(array $condition, array $field = []): array
    {
        return (new self)->where(convertModelCondition($condition))->field($field)->select()->toArray();
    }


}